package fun.diaoer.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.session.Session;
import org.springframework.session.events.SessionDeletedEvent;

public class SessionEventListener implements ApplicationListener<SessionDeletedEvent> {

	private static final String CURRENT_USER = "currentUser";

	@Override
	public void onApplicationEvent(SessionDeletedEvent event) {
		Session session = event.getSession();
		session.getAttribute(CURRENT_USER);
		//System.out.println("invalid session's user:" + userVo.toString());
	}

}
